ioemu: handle empty vnc passwd
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 23 Jan 2008 18:12:37 +0000 (18:12 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 23 Jan 2008 18:12:37 +0000 (18:12 +0000)
commit826202abce0f1c108a4132e9b791de4b7ee9d2d7
treebb85676bca9e6ddff01d19d88dcf700947a5916b
parentfbb0b88ad8f6b834e00347f2b35c145a65e3418f
ioemu: handle empty vnc passwd
Have xenstore_read_vncpasswd return -1 when it is unable to read the
passwd from XenStore (and store an empty password).  However, don't
exit in such case since it may just mean that the use didn't set a
passwd. If he really did, xend would have given the passwd flag in the
-vnc option, and the empty passwd would make the vnc authentication
reject any password anyway.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Acked-by: Daniel P. Berrange <berrange@redhat.com>
tools/ioemu/vl.c
tools/ioemu/vl.h
tools/ioemu/xenstore.c